﻿using System;

namespace ThresholdAssistant.DataContract.Attributes
{
    /// <summary>
    /// 字段排序特性
    /// 适用范围：批量插入
    /// </summary>
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
    public class OrderAttribute : Attribute
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="order"></param>
        public OrderAttribute(int order)
        {
            Order = order;
        }

        /// <summary>
        /// 排序顺序
        /// </summary>
        public int Order { get; set; }
    }
}